package org.bit.demo;

import org.springframework.web.bind.annotation.*;

@RequestMapping("/hello")
@RestController
public class HelloController {

    @RequestMapping(value = "/world")
//    @RequestMapping(value = "/world",method = RequestMethod.GET)
//    @RequestMapping(value = "/world",method = RequestMethod.POST)
//    @GetMapping("/world")
//    @PostMapping("/world")
//    @PutMapping("world")
    public String hello() {
        return "hello,world!";
    }
}
